package com.sure.minion.services.base.vo;

import java.util.List;


/**
 * @Description 基础response 
 * @author syuan
 * @date 2015年8月28日  上午11:38:56
 * @param <T>
 */
public class GenericResponse<T>
{

	private String messageCode = "1";

	private String messageDescription;
	
	private String sessionId;
	
	T responseObject;
	
	/**
	 * @Fields responseError 返回错误对象
	 * @author syuan
	 * @date 2015年2月13日  下午2:04:12
	 */
	private List<ValidateMsgVO> responseError;
	
	public String getMessageCode() {
		return messageCode;
	}

	public void setMessageCode(String messageCode) {
		this.messageCode = messageCode;
	}

	public String getMessageDescription() {
		return messageDescription;
	}

	public void setMessageDescription(String messageDescription) {
		this.messageDescription = messageDescription;
	}

    public String getSessionId() {
		return sessionId;
	}

	public void setSessionId(String sessionId) {
		this.sessionId = sessionId;
	}

	public GenericResponse()
    {
        super();
    }
	
	public GenericResponse(String sessionId)
    {
        super();
        this.sessionId = sessionId;
    }
    
    public GenericResponse(String messageCode, String messageDes)
    {
    	this.messageCode = messageCode;
    	this.messageDescription = messageDes;
    }

	public T getResponseObject() {
		return responseObject;
	}

	public void setResponseObject(T responseObject) {
		this.responseObject = responseObject;
	}

	public List<ValidateMsgVO> getResponseError() {
		return responseError;
	}

	public void setResponseError(List<ValidateMsgVO> responseError) {
		this.responseError = responseError;
	}
	
}
